package com.telnikoff.colaboration;


public class DefaultColaborator implements Colaborator
{
	protected DefaultColaborator(){}

	@Override
	public void colaborate(Collector collector) 
	{
		for (Contributor contributor : collector.getContributors())
		{
			Contributable<?> contributable = collector.getContributable(contributor);
			Contribution contribution = contributor.contribute(contributable);
			collector.accept(contribution);
		}
	}
}